# include <bits/stdc++.h>
using namespace std;

int t, n;
int main() {
	scanf("%d", &n);
	t = 0;
	do {
		n /= 5;
		t += n;
	} while(!(n < 5));
	printf("%6d\n", t);
}
